webpackJsonp([10],{

/***/ 115:
/***/ (function(module, exports, __webpack_require__) {

var disposed = false
var normalizeComponent = __webpack_require__(1)
/* script */
var __vue_script__ = __webpack_require__(148)
/* template */
var __vue_template__ = __webpack_require__(150)
/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = null
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null
var Component = normalizeComponent(
  __vue_script__,
  __vue_template__,
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)
Component.options.__file = "resources/assets/js/views/admin/profile.vue"
if (Component.esModule && Object.keys(Component.esModule).some(function (key) {  return key !== "default" && key.substr(0, 2) !== "__"})) {  console.error("named exports are not supported in *.vue files.")}

/* hot reload */
if (false) {(function () {
  var hotAPI = require("vue-hot-reload-api")
  hotAPI.install(require("vue"), false)
  if (!hotAPI.compatible) return
  module.hot.accept()
  if (!module.hot.data) {
    hotAPI.createRecord("data-v-63c66074", Component.options)
  } else {
    hotAPI.reload("data-v-63c66074", Component.options)
' + '  }
  module.hot.dispose(function (data) {
    disposed = true
  })
})()}

module.exports = Component.exports


/***/ }),

/***/ 148:
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _profile = __webpack_require__(149);

var _profile2 = _interopRequireDefault(_profile);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

exports.default = {
  name: 'profile',
  data: function data() {
    return {
      ruleValidate: {},
      model: {
        name: '',
        email: '',
        mobile: '',
        password: ''
      },
      stateManager: {
        refreshList: true,
        editDialogVisible: false,
        editModelId: 0,
        buttonLoading: false
      }
    };
  },
  methods: {
    showEditDialog: function showEditDialog(id) {
      this.stateManager.editDialogVisible = true;
      this.stateManager.editModelId = id;
    }
  },
  created: function created() {
    var self = this;
    _profile2.default.getProfile(function (response) {
      console.log(response);
      self.model = response.data;
    });
  }
}; //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//

/***/ }),

/***/ 149:
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = {
  /**
   * 获取当前登录用户信息
   * @param cb
   */
  getProfile: function getProfile(cb) {
    axios.get('/api/admin/profile', { params: { include: 'profile' } }).then(function (response) {
      // console.log('Susscee:', response)
      cb(response.data);
    });
  }
};

/***/ }),

/***/ 150:
/***/ (function(module, exports, __webpack_require__) {

var render = function() {
  var _vm = this
  var _h = _vm.$createElement
  var _c = _vm._self._c || _h
  return _c(
    "div",
    [
      _c("bs4-card", [
        _c(
          "div",
          { staticClass: "row", attrs: { slot: "header" }, slot: "header" },
          [
            _c("div", { staticClass: "col-auto mr-auto" }, [
              _vm._v("管理员管理")
            ])
          ]
        ),
        _vm._v(" "),
        _c("div", { staticClass: "row" }, [
          _c(
            "div",
            { staticClass: "col" },
            [
              _c(
                "i-form",
                { attrs: { model: _vm.model, rules: _vm.ruleValidate } },
                [
                  _c("div", { staticClass: "row" }, [
                    _c(
                      "div",
                      { staticClass: "col" },
                      [
                        _c(
                          "Form-item",
                          { attrs: { label: "姓名", prop: "name" } },
                          [
                            _c("i-input", {
                              attrs: { placeholder: "请输入姓名" },
                              model: {
                                value: _vm.model.name,
                                callback: function($$v) {
                                  _vm.$set(_vm.model, "name", $$v)
                                },
                                expression: "model.name"
                              }
                            })
                          ],
                          1
                        )
                      ],
                      1
                    ),
                    _vm._v(" "),
                    _c(
                      "div",
                      { staticClass: "col" },
                      [
                        _c(
                          "Form-item",
                          { attrs: { label: "邮箱", prop: "email" } },
                          [
                            _c("i-input", {
                              attrs: { placeholder: "请输入邮箱" },
                              model: {
                                value: _vm.model.email,
                                callback: function($$v) {
                                  _vm.$set(_vm.model, "email", $$v)
                                },
                                expression: "model.email"
                              }
                            })
                          ],
                          1
                        )
                      ],
                      1
                    )
                  ]),
                  _vm._v(" "),
                  _c(
                    "Form-item",
                    { attrs: { label: "电话号码", prop: "mobile" } },
                    [
                      _c("i-input", {
                        attrs: { placeholder: "请输入电话号码" },
                        model: {
                          value: _vm.model.mobile,
                          callback: function($$v) {
                            _vm.$set(_vm.model, "mobile", $$v)
                          },
                          expression: "model.mobile"
                        }
                      })
                    ],
                    1
                  ),
                  _vm._v(" "),
                  _c(
                    "Form-item",
                    { attrs: { label: "密码", prop: "password" } },
                    [
                      _c("i-input", {
                        attrs: { type: "password", placeholder: "请输入密码" },
                        model: {
                          value: _vm.model.password,
                          callback: function($$v) {
                            _vm.$set(_vm.model, "password", $$v)
                          },
                          expression: "model.password"
                        }
                      })
                    ],
                    1
                  )
                ],
                1
              )
            ],
            1
          )
        ])
      ])
    ],
    1
  )
}
var staticRenderFns = []
render._withStripped = true
module.exports = { render: render, staticRenderFns: staticRenderFns }
if (false) {
  module.hot.accept()
  if (module.hot.data) {
    require("vue-hot-reload-api")      .rerender("data-v-63c66074", module.exports)
  }
}

/***/ })

});